#!/usr/local/bin/python3
__author__ = '曹植'

import requests

proxy = requests.get('http://192.168.1.227:30036/random').text
print(proxy)
proxy = {
    'http': proxy
}

res = requests.get('http://www.baidu.com', proxies=proxy)
print(res.text)
